package bTree.LeetCode;

public class 找出加密后的字符串 {
    public String getEncryptedString(String s, int k) {
        StringBuilder sb=new StringBuilder();
//        k=k-1;
        int length = s.length();
        k=k%length;
        for (int i=k;i<s.length();i++){
            sb.append(s.charAt(i));
        }
        for (int i=0;i<k;i++){
            sb.append(s.charAt(i));

        }
        return sb.toString();
    }
}